package com.itheima.map;

import java.util.Map;
import java.util.TreeMap;

/*
TreeMap 的基本玩法


 */
public class Demo01 {

    public static void main(String[] args) {
        Map<String,String> map= new TreeMap<>();
        map.put("马蓉","宝强");
        map.put("马蓉","宋喆");
        map.put("都美竹","吴亦凡");
        map.put("小吉娜","吴亦凡");
        map.put("小璐","亮亮");
        System.out.println(map);
        map.put("小璐","PGone");
        System.out.println(map);

        System.out.println("小".compareTo("都"));
        System.out.println("小".compareTo("马"));
        System.out.println("都".compareTo("马"));
        System.out.println('魑'+0);
        System.out.println('小'+0);
        System.out.println('都'+0);
        System.out.println('马'+0);


    }
}
